﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Sim3D_practicum.Physics
{
    public static class Vector3D
    {
        public static Vector3 Clone(this Vector3 value)
        {
            return new Vector3( ( float ) value.X, ( float ) value.Y, ( float ) value.Z );
        }

        /// <summary>
        /// Draws a line between two vectors, usually used for debugging purposes
        /// </summary>
        /// <param name="v2"></param>
        public static void Draw( this Vector3 vector, Vector3 v2, GraphicsDeviceManager gdm )
        { 
            
        }

        /// <summary>
        /// returns a new Vecto3 instance which is perpendicular to the given vector
        /// </summary>
        /// <param name="vector"></param>
        /// <returns></returns>
        public static Vector3 NormalY( this Vector3 vector )
        {
            return new Vector3 
            { 
                X = 0,
                Y = vector.Z,
                Z = 0
            };
        }
    }
}
